import request from '@/utils/request'
/**
 * 获取会员列表
 * @param {*} data 
 * @returns 
 */
export function findMemberPage(params) {
  return request({
      url: '/admin/business/findMemberPage',
      method: 'GET',
      params
  })
}
/**
 * 添加会员
 * @param {*} data 
 * @returns 
 */
export function addMember(data) {
  return request({
      url: '/admin/business/addMember',
      method: 'POST',
      data
  })
}

/**
 * 修改会员/商家
 * @param {*} data 
 * @returns 
 */
export function updateBusiness(data) {
  return request({
      url: '/admin/business/updateBusiness',
      method: 'POST',
      data
  })
}
/**
 * 删除会员
 * @param {*} data 
 * @returns 
 */
export function deleteBusiness(params) {
  return request({
      url: '/admin/business/deleteBusiness',
      method: 'POST',
      params
  })
}
/**
 * 我的流水 -- 会员
 * @param {*} data 
 * @returns 
 */
export function GetViewWalletFlow(params) {
  return request({
      url: '/admin/business/viewWalletFlow',
      method: 'GET',
      params
  })
}
/**
 * 修改会员等级
 * @param {*} data 
 * @returns 
 */
export function updateMemberLevel(data) {
  return request({
      url: '/admin/business/updateMemberLevel',
      method: 'POST',
      data
  })
}
/**
 * 晋升 会员成为商户
 * @param {*} data 
 * @returns 
 */
export function promotionMember(params) {
  return request({
      url: '/admin/business/promotionMember',
      method: 'GET',
      params
  })
}